<?php

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 * Description of project
 *
 * @author truongkx
 */
class service extends BACKEND_Controller{
    //put your code here
    function __construct() {
        parent::__construct('service','service_');
    }
    
    
    
    function index(){
        echo $c=$this->load->view('cms/cp/06_service/viewport',$this->assigns,true);
    }
    
    function editpanel(){
        $Id=(int)$this->input->post('Id');
        if($Id>0)
            $this->assigns->item=$this->backend_model->onGet($Id);
        $c=$this->load->view('cms/cp/06_service/editpanel',$this->assigns,true);
        $R["result"] = 1;
        $R["message"]='SUCCESS !';
        $R["htmlreponse"]=$c;
        $this->output->set_header('Content-type: application/json');
        $this->output->set_output(json_encode($R));
    }
    
    
}

?>
